<?php
if (!$auth->getReadAccess(86))
	header("Location: " . $__CFG_http_root . "index.php/error/");
//include controller class
    $dp;
require_once $__CFG_dir_admin . 'modules/management/controller/history_trace_route_controller.php';
require_once($__CFG_dir_adminlayout . $__CFG_site_adminlayout . "/header.php");

$dataPart = explode("_", $kode);
$myController = new history_trace_route_controller();
if ($dataPart[0] == 'normal') {
    $cont = $myController->getNormal($dataPart[1], $dataPart[2], $dataPart[3], $sc_pageslimit, $_REQUEST["os"]);
} else {
    $cont = $myController->getResult($dataPart[1], $dataPart[2], $dataPart[3], $dataPart[4], $dataPart[5], $sc_pageslimit, $_REQUEST["os"]);
}

setPageTitle("History Trace Route ");
$gb = new GB();
?>

<div id="masthead">
    <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
        <tr>
            <td><h1><?php echo "History Trace Route IP " . $dataPart[2] . ":" . $dataPart[3] ?> </h1></td>
            <td id="breadcrumb_right">
                <a href="<?php echo $__CFG_http_root . "index.php"; ?>"><?php echo $auth->getName() ?></a> | <a href="<?php echo $__CFG_http_root . "index.php?m=logout" ?>" >LogOut</a></td>
        </tr>
    </table>
</div>

<div id="content">

    <div class="DivTable">       
        <br />
        <table class="GridTable">
            <tr class="GridHeader">                        
                <td>TCP TRACE ROUTE</td>
            </tr>
            <?php
            if ($cont->countListData() > 0) {
                foreach ($cont->listData() as $row) {
                    ?>
                    <tr class="<?php echo $styleTR; ?>" >
                        <td><?php echo str_replace("\n", "<br>", $row->status); ?></td>
                    </tr>
                    <?php
                }
            } else {
                ?>
                <tr class="GridItem1">
                    <td colspan="5">Tidak ada data</td>
                </tr>

            <?php } ?>
        </table>
    </div>    
    <br class="bersih" />
</div>